<?php
try{
	$data = array('ua'=>'Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/8.9 Mobile Safari/537.36'); 
	$data = @http_build_query($data);
	$opts = array(
		'http'=>array(
			'method'=>"POST",
			'timeout'=>60
		)
	);
	$opts = array('http' => array('method' => 'POST',  
	'header'  => 'Content-type: application/x-www-form-urlencoded',  
	'content' => $data));

	$ctx = stream_context_create($opts);
	$resp = @file_get_contents("http://www.fynas.com/ua/analyze", false, $ctx);
	$uainfo = json_decode($resp,true);
	echo $resp.'<br>';
	echo "OS: ".$uainfo['data']['os']."; Device: ".$uainfo['data']['device']."; Browser: ".$uainfo['data']['browser'];
}
catch(Exception $e) {
	echo 'Message: ' .$e->getMessage();
}
?>